Optimal Code Motion in the Presence of Large Expressions
نویسنده
چکیده
Oliver R uthing Department of Computer Science University of Dortmund D-44221 Dortmund, Germany [email protected] Abstract Common algorithms for partial redundancy elimination that are sensitive to register pressure are designed from a single-expression point of view. For each computation under investigation unnecessary code motion is avoided as far as possible. Unfortunately, such a view is only adequate when dealing with a at universe of expressions. In a more realistic setting where both composite expressions and their subexpressions are subjected to code motion trade-o s among the lifetimes of symbolic registers have to be taken into account. In this paper we present a polynomial time algorithm for the elimination of partially redundant computations that uniformly minimizes the total number of lifetime ranges at each program point. This is achieved by a re nement of our algorithm for lazy code motion [12] that incorporates optimal register tradeo s being computed by means of maximum bipartite graph matchings. 1 Motivation Partial redundancy elimination (PRE) is a technique that avoids unnecessary recomputations of values at run-time. Originating with the pioneering work of Morel and Renvoise [16] a number of improvements have been proposed [5, 6, 7, 9, 18], among which the avoidance of unnecessary code motion had a predominating role. The reason for this lies in the fact that algorithms for PRE use temporaries (symbolic registers) in order to keep the values of prior evaluations along Copyright 1998 IEEE. Published in the Proceedings of ICCL'98, May 1998 Chicago, Illinois. Personal use of this material is permitted. However, permission to reprint/republish this material for advertising or promotional purposes or for creating new collective works for resale or redistribution to servers or lists, or to reuse any copyrighted component of this work in other works, must be obtained from the IEEE. Contact: Manager, Copyrights and Permissions / IEEE Service Center / 445 Hoes Lane / P.O. Box 1331 / Piscataway, NJ 08855-1331, USA. Telephone: + Intl. 908-5623966. some program paths. Therefore, unnecessarily large lifetimes of temporaries contribute to register pressure. Lazy code motion (LCM) [12, 13] was the rst algorithm that succeeded in reducing the lifetime ranges of temporaries to a minimum while avoiding partial redundancies as far as possible. Unfortunately, LCM su ers from the same drawback as all other known algorithms for PRE. It is designed from a single-expression point of view, and can only be extended to sets of expressions with a at structure, i. e. to sets of expressions that do not contain composite expressions and their subexpressions at once. This is a serious limitation, as a reasonable code motion algorithm should be capable of moving both large expressions and their subexpressions at once. The phenomenon is illustrated by means of the example of Figure 1.
منابع مشابه
Robust Optimal Control of Flexible Spacecraft During Slewing Maneuvers
In this paper, slewing maneuver of a flexible spacecraft with large angle of rotation is considered and assuming structural frequency uncertainties a robust minimum-time optimal control law is developed. Considering typical bang-bang control commands with multiple symmetrical switches, a parameter optimization procedure is introduced to find the control forces/torques. The constrained minimizat...
متن کاملAnalysis and Synthesis of Facial Expressions by Feature-Points Tracking and Deformable Model
Face expression recognition is useful for designing new interactive devices offering the possibility of new ways for human to interact with computer systems. In this paper we develop a facial expressions analysis and synthesis system. The analysis part of the system is based on the facial features extracted from facial feature points (FFP) in frontal image sequences. Selected facial feature poi...
متن کاملLarge amplitude vibration prediction of rectangular plates by an optimal artificial neural network (ANN)
In this paper, nonlinear equations of motion for laminated composite rectangular plates based on the first order shear deformation theory were derived. Using a perturbation method, the nonlinear equation of motion was solved and analytical relations were obtained for natural and nonlinear frequencies. After proving the validity of the obtained analytical relations, as an alternative and simple ...
متن کاملDesign of optimal central guidance of an underwater vehicle in the modeled ship wake
The purpose of this paper is to provide a new algorithm for guidance of an underwater vehicle to reach its target, and demonstrate its effectiveness by simulation with a computer code. The meant of target in here is to chase a ship on the surface of the water. In order to do this, one of the most effective methods is to follow the ship wake which produced behind it. Disadvantages of wake guidan...
متن کاملNear-Minimum-Time Motion Planning of Manipulators along Specified Path
The large amount of computation necessary for obtaining time optimal solution for moving a manipulator on specified path has made it impossible to introduce an on line time optimal control algorithm. Most of this computational burden is due to calculation of switching points. In this paper a learning algorithm is proposed for finding the switching points. The method, which can be used for both ...
متن کامل